package com.huawei.appmarket.service.usercenter.personal.view.card;

import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import com.huawei.appgallery.foundation.store.bean.user.GetPersonalInfoResBean;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import o.cgz;
import o.ckt;
import o.der.e;
import o.der.f;
import o.ekg;
import o.ekp;
import o.ekr;
import o.elv;

public class PersonalWishCard extends PersonalNormalCard implements OnClickListener {
    public PersonalWishCard(Context context) {
        super(context);
    }

    public cgz ˏ(View view) {
        super.ˏ(view);
        this.ʿ.setText(f.ˡ);
        ˏ(this.ˎ, e.ʿ);
        view.setContentDescription(this.ˊ.getResources().getString(f.ˡ));
        view.setOnClickListener(new ckt(this));
        return this;
    }

    public void ˏ(CardBean cardBean) {
        super.ˏ(cardBean);
        ˎ();
    }

    public void onClick(View view) {
        ˊ();
        ॱॱ();
        ekr.ॱ(ekp.ʽ, ekr.ˎ);
        ˎ(false);
    }

    private void ˎ() {
        GetPersonalInfoResBean ˊ = ekg.ॱ().ˊ();
        if (ˊ == null || ˊ.ʽ() != 1) {
            ˎ(false);
            ekr.ॱ(ekp.ʽ, ekr.ˎ);
            return;
        }
        ˎ(true);
        ekr.ॱ(ekp.ʽ, ekr.ˋ);
    }

    private void ॱॱ() {
        GetPersonalInfoResBean ˊ = ekg.ॱ().ˊ();
        if (ˊ != null) {
            ˊ.ॱˊ();
        }
    }

    protected void ˊ() {
        new elv(this.ˊ).ˊ();
    }
}
